import { axios } from '@/utils/request'

/**
 * 分页查询通道类型
 *
 * @author ssy
 * @date 2022/02/16 10:59
 */
export function page (parameter) {
    return axios({
        url: '/bizChannelType/page',
        method: 'get',
        params: parameter
    })
}

/**
 * 增加通道类型
 *
 * @author ssy
 * @date 2022/02/16 10:59
 */
export function add (parameter) {
    return axios({
        url: '/bizChannelType/add',
        method: 'post',
        data: parameter
    })
}

/**
 * 编辑通道类型
 *
 * @author ssy
 * @date 2022/02/16 10:59
 */
export function edit (parameter) {
    return axios({
        url: '/bizChannelType/edit',
        method: 'post',
        data: parameter
    })
}

/**
 * 查看详情通道类型
 *
 * @author ssy
 * @date 2022/02/16 10:59
 */
export function detail (parameter) {
    return axios({
        url: '/bizChannelType/detail',
        method: 'get',
        params: parameter
    })
}

/**
 * 删除通道类型
 *
 * @author ssy
 * @date 2022/02/16 10:59
 */
export function del (parameter) {
    return axios({
        url: '/bizChannelType/delete',
        method: 'post',
        data: parameter
    })
}

export function channelTypeList (parameter) {
  return axios({
    url: '/bizChannelType/list',
    method: 'get',
    params: parameter
  })
}
